import request from '@/utils/request'

// 查询个人赛记录列表
export function listIndividualrecord(query) {
  return request({
    url: '/learnmanagement/individualrecord/list',
    method: 'get',
    params: query
  })
}

// 查询个人赛记录详细
export function getIndividualrecord(id) {
  return request({
    url: '/learnmanagement/individualrecord/' + id,
    method: 'get'
  })
}

// 新增个人赛记录
export function addIndividualrecord(data) {
  return request({
    url: '/learnmanagement/individualrecord',
    method: 'post',
    data: data
  })
}

// 修改个人赛记录
export function updateIndividualrecord(data) {
  return request({
    url: '/learnmanagement/individualrecord',
    method: 'put',
    data: data
  })
}

// 删除个人赛记录
export function delIndividualrecord(id) {
  return request({
    url: '/learnmanagement/individualrecord/' + id,
    method: 'delete'
  })
}
